package com.jtcl.module.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @author sjt
 * @since 2021-02-01 17:18
 */
@Data
@NoArgsConstructor
@Document("sys_org")
public class Org {

    private String id;

    private String name;

    private List<User> users;


    public Org(String id,String name, List<User> users) {
        this.id = id;
        this.name = name;
        this.users = users;
    }

    public Org(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public Org(String name) {
        this.name = name;
    }
}
